﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using Affinity.Flux;

namespace UserInterface
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public App()
        {
            Affinity.Core.Utility.Threading.ExecuteOnUIThreadImplementation = action => Dispatcher.BeginInvoke(action);
            DispatcherUnhandledException += (sender, e) =>
            { 
                MessageBox.Show(e.Exception.ToString()); 
                e.Handled = true; 
            };
        }
    }
}
